//
//  UpStairSliderView.h
//  CarFace
//
//  Created by dlios on 15/3/24.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import <UIKit/UIKit.h>



#warning 协议传值1:

@protocol UpStairSliderDelegate <NSObject>

@optional

- (void)changeCollection:(NSInteger)changeNum;

@end




@interface UpStairSliderView : UIView <UICollectionViewDataSource>
@property(nonatomic, assign)id<UpStairSliderDelegate>delegate;
// 传入一个数组, 一个自定义的图片, 一个自定义的SEL;

@property(nonatomic, retain)NSIndexPath *blackLook;

@property(nonatomic, assign)NSInteger rec;



@property(nonatomic, retain)NSMutableArray *arr;
@property(nonatomic, retain)UIImage *imageRight;
@property(nonatomic, assign)id target;
@property(nonatomic, assign)SEL action;

@property(nonatomic, retain)UICollectionView *collectionView;

+ (instancetype)upStairWithFrame:(CGRect)frame
                             arr:(NSMutableArray *)arr
                           image:(UIImage *)imageRight
                          action:(SEL)action
                          target:(id)target;

@end
